<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button id="test">测试按钮</button>
		
		<script src="js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="layer/layer.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$('#test').on('click', function() {
				// layer.alert('只是简单地提示');
				/* layer.alert(
					'这是一个严重的警告框',
					{icon : 2},
					function(index) {
						layer.close(index);
					}
				); */
				
				layer.confirm(
					'您确认要删除么?',
					{icon : 3, title : '提示'},
					function(index) {
						layer.close(index);
					}
				);
			});
		</script>
	</body>

</html>
